from django.conf.urls import url
from . import views

urlpatterns =[
    # url(r'define_classviews/$',views.DefineClassviews.as_view()),
    #　as_view()：将视图转成函数视图，并实现请求业务逻辑的分发
    url(r'template_demo/$',views.TemplateDemoView.as_view()),

    #　在路由正则匹配中装饰类视图：本质是装饰类视图执行as_view()之后的结果

    #　第一种装饰
    # url(r'^define_classview/$',views.my_decorator(views.DefineClassview.as_view())),

    url(r'^define_classview/$',views.DefineClassview.as_view())
]